* {
  padding: 0;
  margin: 0;
  outline: none;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(144, 147, 153, 0.3);
}

*::-webkit-scrollbar-track {
  background: transparent;
}

#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

a {
  text-decoration: none;
}

input,
button {
  outline: none;
}

input {
  &:-webkit-autofill {
    box-shadow: 0 0 0px 1000px white inset;
  }
}

.app-result {
  padding: 48px 32px;
  &-icon {
    margin-bottom: 24px;
    text-align: center;
  }
  &-image {
    width: 250px;
    height: 295px;
    margin: auto;
  }
  &-title {
    color: rgba(0, 0, 0, 0.85);
    font-size: 24px;
    line-height: 1.8;
    text-align: center;
  }
  &-subtitle {
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }
  &-extra {
    margin: 32px 0 0;
    text-align: center;
  }
}

.content-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  background-color: #fff;
  overflow: hidden;
  &.is-border {
    border: 1px solid #eee;
  }

  & > .el-row {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    margin-bottom: 0;
    min-height: 33px;

    &::-webkit-scrollbar {
      height: 4px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(144, 147, 153, 0.3);
      border-radius: 5px;
    }

    &::-webkit-scrollbar-track {
      background: transparent;
    }

    & + .el-row {
      margin-top: 5px;
    }
  }
}

.lv-flex1 {
  flex: 1;
  font-size: 12px;
}

.lv-search-key {
  display: flex;
  margin-left: 10px;

  &__select {
    margin-right: 10px;
  }

  &__button {
    &.el-button {
      margin-left: 10px;
    }
  }
}

.lv-adv-btn {
  & > .el-button {
    margin-left: 10px;

    i {
      margin-right: 5px;
    }
  }
}

.lv-table {
  width: 100%;

  .el-table {
    .el-loading-mask {
      .el-loading-spinner {
        .el-icon-loading {
          font-size: 25px;
          color: #000;
        }

        .el-loading-text {
          color: #666;
          margin-top: 5px;
        }
      }
    }

    &.el-loading-parent--relative {
      box-sizing: border-box;
    }
  }
}

.content-container__op-dropdown-menu {
  .el-dropdown-menu__item {
    height: 30px;
    line-height: 30px;
    padding: 0;
  }

  .el-button {
    height: 30px;
    width: 100%;
    padding: 0 20px;
    text-align: left;
    box-sizing: border-box;
  }
}

.lv-query {
  display: inline-flex;
  margin: 0 10px;
  border-radius: 3px;

  button {
    border: 0;
    background-color: #fff;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    color: #666;
    white-space: nowrap;

    &:hover {
      color: #6fa8ff;
    }

    &.is-active {
      color: #409eff;
    }

    span {
      display: inline-block;
      padding: 0 15px;
      border-right: 1px solid #ddd;
    }

    &:last-child {
      span {
        border: 0;
      }
    }
  }
}

.lv-filter {
  display: flex;
  align-items: center;
  margin: 0 10px;

  &__label {
    font-size: 12px;
    margin-right: 10px;
    white-space: nowrap;
  }

  .el-select {
    min-width: 120px;
  }
}

.lv-filter-group {
  display: inline-flex;
  white-space: nowrap;
  margin: 0 10px;

  &__items {
    display: inline-flex;
  }
}

.lv-adv-search {
  .el-drawer {
    &__header {
      margin-bottom: 20px;
    }

    &__body {
      height: calc(100% - 63px);
      padding: 0 5px;
    }
  }

  &__container {
    height: calc(100% - 55px);
    overflow-y: auto;
    padding: 10px 20px;
    margin-bottom: 5px;
    box-sizing: border-box;

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 6px;
      background-color: rgba(144, 147, 153, 0.3);
    }

    .el-form-item__content {
      & > div {
        width: 100%;
      }
    }
  }

  &__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    border-top: 1px solid #ebeef5;
  }

  .el-drawer {
    outline: none;

    &__header {
      span {
        outline: none;
        font-size: 15px;
      }
    }

    &__close-btn {
      outline: none;
    }
  }
}

.lv-form {
  padding: 5px;

  .el-form-item {
    &__label {
      .el-tooltip {
        i {
          margin-left: 5px;
        }
      }
    }
  }

  &-item {
    display: flex;

    &__prepend {
      margin-right: 10px;
    }

    &__component {
      &.is-flex {
        flex: 1;
        width: 100%;

        & > div {
          width: 100%;
        }
      }
    }

    &__append {
      margin-left: 10px;
    }

    &__collapse {
      width: 100%;
      font-size: 12px;
      cursor: pointer;

      .el-divider {
        margin: 16px 0;

        &__text {
          font-size: 12px;
        }
      }

      i {
        margin-left: 6px;
      }
    }
  }

  &__footer {
    display: flex;
    justify-content: flex-end;
  }
}

.lv-form-tabs {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  width: 100%;

  ul {
    height: 35px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    li {
      display: inline-block;
      list-style: none;
      padding: 0 20px;
      height: 35px;
      line-height: 35px;
      cursor: pointer;
    }
  }

  &__line {
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: -1px;
    left: 0;
    transition: transform 0.3s ease-in-out,
      width 0.2s 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
}

.lv-dialog {
  .el-dialog {
    &__header {
      padding: 10px !important;
      border-bottom: 1px solid #f7f7f7;

      .el-dialog__title {
        font-size: 15px;
        letter-spacing: 0.5px;
      }

      .el-dialog__headerbtn {
        top: 13px;

        .el-dialog__close {
          font-size: 18px;
        }
      }

      &-slot {
        &.is-drag {
          -moz-user-select: none;
          -webkit-user-select: none;
          -ms-user-select: none;
          -khtml-user-select: none;
          user-select: none;
          cursor: move;
        }
      }
    }

    &__body {
      padding: 20px;
    }

    &__footer {
      padding-bottom: 15px;
    }
  }

  &__header {
    height: 25px;
    line-height: 25px;
    text-align: center;
    position: relative;
  }

  &__title {
    display: block;
    font-size: 15px;
    letter-spacing: 0.5px;
  }

  &__controls {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
    width: 100%;

    button,
    .minimize,
    .maximize,
    .close {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 25px;
      width: 40px;
      border: 0;
      background-color: #fff;
      cursor: pointer;
      outline: none;

      i {
        font-size: 16px;

        &:hover {
          opacity: 0.7;
        }
      }
    }
  }

  &.hidden-header {
    .el-dialog__header {
      display: none;
    }
  }
}

.lv-context-menu {
  position: absolute;
  z-index: 9999;

  .lv-context-menu-box {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    width: 160px;
    padding: 5px 0;
    background-color: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;

    &.is-append {
      right: calc(-100% - 5px);
      top: -5px;
    }

    & > div {
      display: flex;
      align-items: center;
      height: 35px;
      font-size: 13px;
      cursor: pointer;
      padding: 0 15px;
      color: #666;
      position: relative;

      span {
        height: 35px;
        line-height: 35px;
        flex: 1;
      }

      &:hover {
        background-color: #f7f7f7;
        color: #000;
      }

      i {
        &:first-child {
          margin-right: 5px;
        }

        &:last-child {
          margin-left: 5px;
        }
      }

      &.is-active {
        background-color: #f7f7f7;
        color: #000;
      }

      &.is-ellipsis {
        span {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }

      &.is-disabled {
        span {
          color: #ccc;

          &:hover {
            color: #ccc;
          }
        }
      }
    }
  }
}

// Element-ui Theme
.el-message {
  &.el-message--success,
  &.el-message--error,
  &.el-message--info,
  &.el-message--warning {
    min-width: auto;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 0;
    padding: 12px 20px 12px 15px;

    .el-message__content {
      color: #999;
    }
  }
}

.el-table {
  table {
    th {
      background-color: #ebeef5;
      padding: 6px 0;
      font-size: 14px;
    }

    .cell {
      color: rgba(0, 0, 0, 0.85);
      font-weight: 500;
    }
  }

  &__column {
    &-filter-trigger {
      margin-left: 5px;
    }
  }

  &-column--selection {
    .cell {
      padding: 0 14px;
    }
  }
}

.el-table-filter {
  margin-top: 5px !important;

  .el-checkbox__label {
    font-size: 12px;
  }
}

@media only screen and (max-width: 768px) {
  .el-message-box {
    width: 90% !important;
  }

  .el-table {
    &__body {
      &-wrapper {
        &::-webkit-scrollbar {
          height: 6px;
          width: 6px;
        }
      }
    }
  }
}
.bg-delete {
  background-color: #f56c6c !important;
}
.text-delete {
  color: #f56c6c !important;
}
.ml10 {
  margin-left: 10px;
}
